You cannot quit or close a script while it is loading or saving.